<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 200px;
            height: 200px;
            background-color: #ccc;
            padding:30px;
            border:10px solid red;
            
            /* 标准盒模型 */
            box-sizing: content-box;
        }
        .box2{
            width: 200px;
            height: 200px;
            background-color: #ccc;
            padding:30px;
            border:10px solid red;

            /* ie盒模型 */
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <h1>两种盒模型</h1>
    <div class="box1">标准盒模型:width不包括padding+border</div>
    <div class="box2">怪异盒模型：width包含padding+border</div>

    </div>
</body>
</html>